<?php

namespace Database\Seeders;

use App\Models\Category\Category;
use Illuminate\Database\Seeder;

class AttachmentCategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $attachment = [
            [
                'top_id' => '0',
                'pid' => '0',
                'category_group_id' => '7',
                'level' => '1',
                'name' => implode('-',pinyin('全部图片',true)),
                'nickname' => '全部图片',
                'sort' => '100',
            ],
            [
                'top_id' => '0',
                'pid' => '0',
                'category_group_id' => '7',
                'level' => '1',
                'name' => implode('-',pinyin('图片素材',true)),
                'nickname' => '图片素材',
                'sort' => '0',
            ],
            [
                'top_id' => '0',
                'pid' => '0',
                'category_group_id' => '7',
                'level' => '1',
                'name' => implode('-',pinyin('金刚区',true)),
                'nickname' => '金刚区',
                'sort' => '0',
            ],
            [
                'top_id' => '0',
                'pid' => '0',
                'category_group_id' => '7',
                'level' => '1',
                'name' => implode('-',pinyin('广告图',true)),
                'nickname' => '广告图',
                'sort' => '0',
            ],
            [
                'top_id' => '0',
                'pid' => '0',
                'category_group_id' => '7',
                'level' => '1',
                'name' => implode('-',pinyin('个人中心',true)),
                'nickname' => '个人中心',
                'sort' => '0',
            ],
            [
                'top_id' => '0',
                'pid' => '0',
                'category_group_id' => '7',
                'level' => '1',
                'name' => implode('-',pinyin('远程下载',true)),
                'nickname' => '远程下载',
                'sort' => '0',
            ],
            [
                'top_id' => '0',
                'pid' => '0',
                'category_group_id' => '7',
                'level' => '1',
                'name' => implode('-',pinyin('底部菜单',true)),
                'nickname' => '底部菜单',
                'sort' => '0',
            ],
            [
                'top_id' => '0',
                'pid' => '0',
                'category_group_id' => '7',
                'level' => '1',
                'name' => implode('-',pinyin('抽奖',true)),
                'nickname' => '抽奖',
                'sort' => '0',
            ],
            [
                'top_id' => '0',
                'pid' => '0',
                'category_group_id' => '7',
                'level' => '1',
                'name' => implode('-',pinyin('PC',true)),
                'nickname' => 'PC',
                'sort' => '0'
            ],
            [
                'top_id' => '0',
                'pid' => '0',
                'category_group_id' => '7',
                'level' => '1',
                'name' => implode('-',pinyin('分类图标',true)),
                'nickname' => '分类图标',
                'sort' => '0',
            ],
            [
                'top_id' => '0',
                'pid' => '0',
                'category_group_id' => '7',
                'level' => '1',
                'name' => implode('-',pinyin('系统设置',true)),
                'nickname' => '系统设置',
                'sort' => '0',
            ],
            [
                'top_id' => '0',
                'pid' => '0',
                'category_group_id' => '7',
                'level' => '1',
                'name' => implode('-',pinyin('商品',true)),
                'nickname' => '商品',
                'sort' => '0',
            ],
        ];

        foreach ($attachment as $value){
            Category::create($value);
        }
    }
}
